package main

import (
	factory "GoCode/day02/04_factory"
	"fmt"
)

func main() {
	//利用工程模式，对私有的student结构体进行了实例化
	s1 := factory.NewStudent("zhangsan", 88.5)
	fmt.Println(s1)
	fmt.Println(s1.Name, s1.GetScore())
	s1.Name = "Alice"
	fmt.Println(s1)
	s1.SetScore(90)
	fmt.Println(s1)

	var mp = map[string]string{}
	mp["name"] = "zhangsan"
	fmt.Println(mp)
}
